package com.tpc.jginterface.task;

import com.tpc.jginterface.service.GoodsService;
import com.tpc.jginterface.service.SupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class GoodsTask {
    @Autowired
    private GoodsService goodsService;
    @Scheduled(cron = "${UPLOAD.GOODS}")
    public void uploadGoods(){
        goodsService.uploadGoods();
    }
}
